package com.pine.app.module.security.core;

import com.pine.app.module.security.core.userdetails.UserDetails;

/**
 * @author xiaoyuan
 * @create 2019/9/6 15:41
 **/
public abstract class AbstractAuthenticationToken implements Authentication {



    public AbstractAuthenticationToken(){

    }

    public String getName() {
        return this.getPrincipal() instanceof UserDetails ?((UserDetails)this.getPrincipal()).getUsername():"";
    }

}
